/* 二维地图 */
.map,
#map-3d {
  display: block;
  background: #ffffff;

  /* 地图测量控件默认隐藏 */
  & .mapboxgl-ctrl-bottom-left > .mapboxgl-ctrl-group:first-child {
    display: none;

    .mapboxgl-ctrl-bottom-left .mapboxgl-ctrl {
      margin-left: 45px;
    }
  }

  & .mapboxgl-ctrl-bottom-left {
    right: 32px;
    left: auto;
  }

  & .mapboxgl-ctrl-bottom-right {
    right: 26px;
    bottom: 92px;
    > .mapboxgl-ctrl.mapboxgl-ctrl-group:first-child {
      margin-bottom: 12px;
      border-radius: 50px;
      button {
        width: 40px;
        height: 40px;
      }
      svg {
        width: 32px;
        height: 40px;
      }
    }
  }

  & .mapboxgl-ctrl-bottom-right {
    > .mapboxgl-ctrl.mapboxgl-ctrl-group,
    > .mapboxgl-ctrl.mapboxgl-ctrl-scale {
      margin-right: 8px;
      color: #8590b3;
      text-align: center;
      border-radius: 6px;
    }
    > .mapboxgl-ctrl-group button {
      width: 40px;
      height: 40px;
    }
  }
  & .mapboxgl-popup-content {
    border-radius: 10px;
  }
}

.mapboxgl-canvas {
  width: 100% !important;
  height: 100% !important;
}

.mapboxgl-ctrl-logo,
.mapboxgl-ctrl-attrib {
  display: none !important;
}

#marker {
  width: 50px;
  height: 50px;
  background-image: url('https://docs.mapbox.com/mapbox-gl-js/assets/washington-monument.jpg');
  background-size: cover;
  border-radius: 50%;
  cursor: pointer;
}

.mapboxgl-popup {
  max-width: 187px;
}

.mapboxgl-popup-close-button {
  right: 5px !important;
  color: #333333 !important;
  font-size: 25px;
}

.mapboxgl-popup-content {
  background: none !important;
  border-radius: 10px;
}

// .mapboxgl-popup {
//   max-width: 200px;
// }

// leaflet弹出窗样式修改
// .root_popup_root {
//   display: flex;
//   margin-bottom: 10px;
//   z-index: 9999;
// }

// .root_popup_title {
//   padding: 10px 5px;
//   width: 120px;
//   border: 1px solid #ccc;
//   text-align-last: justify;
//   border-bottom-left-radius: 3px;
//   border-top-left-radius: 3px;
//   background-color: #e9ecef;
// }

// .root_popup_text {
//   width: calc(100% - 85px);
//   padding: 10px 5px;
//   border: 1px solid #ccc;
//   border-left: unset;
//   border-bottom-right-radius: 3px;
//   border-top-right-radius: 3px;
//   background-color: #fff;
//   display: flex;
//   align-items: center;
// }
